package com.huakang.entity;

import java.io.Serializable;

/**
 * keshi
 * @author 
 */
public class Keshi implements Serializable {
    private Integer kid;

    private String kname;

    private Integer kphone;

    private static final long serialVersionUID = 1L;

    public Integer getKid() {
        return kid;
    }

    public void setKid(Integer kid) {
        this.kid = kid;
    }

    public String getKname() {
        return kname;
    }

    public void setKname(String kname) {
        this.kname = kname;
    }

    public Integer getKphone() {
        return kphone;
    }

    public void setKphone(Integer kphone) {
        this.kphone = kphone;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Keshi other = (Keshi) that;
        return (this.getKid() == null ? other.getKid() == null : this.getKid().equals(other.getKid()))
            && (this.getKname() == null ? other.getKname() == null : this.getKname().equals(other.getKname()))
            && (this.getKphone() == null ? other.getKphone() == null : this.getKphone().equals(other.getKphone()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getKid() == null) ? 0 : getKid().hashCode());
        result = prime * result + ((getKname() == null) ? 0 : getKname().hashCode());
        result = prime * result + ((getKphone() == null) ? 0 : getKphone().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", kid=").append(kid);
        sb.append(", kname=").append(kname);
        sb.append(", kphone=").append(kphone);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}